package org.example.springmvc.controller;

import lombok.extern.slf4j.Slf4j;
import org.example.springmvc.vo.ResultVO;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestAttribute;
import org.springframework.web.bind.annotation.RequestMapping;
@Slf4j
@Controller
@RequestMapping("api/user/")
public class UserController {
    @GetMapping("info")
    public ResultVO getInfo(@RequestAttribute String uid){
      log.debug(uid);
      return ResultVO.success(uid);
    }
}
